package com.tarena.lbs.coupon.dao.repository;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tarena.lbs.base.protocol.pager.BasePageQuery;
import com.tarena.lbs.coupon.pojo.po.CouponPO;

public interface CouponRepository {

    Page<CouponPO> getCouponListByBusinessId(BasePageQuery pageQuery, Integer businessId);

    void insertCoupon(CouponPO couponPO);

    CouponPO getCouponById(Integer id);

    void deleteCoupon(Integer id);

    void updateCoupon(CouponPO couponPO);
}
